﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Contra
{
    class BulletFactory
    {

        public static Bullet GetRegularBullet(ContentManager content,Player player)
        {

            Bullet newBullet = new Bullet(content.Load<Texture2D>("Bullet"));
         
            newBullet.velocity = new Vector2(player.characterFacing, 0);
            newBullet.position = player.sPosition + newBullet.velocity;
            newBullet.isVisible = true;
                
            return newBullet;
                            
        }
    }
}
